<%@include file="parts/Header.jsp" %>
<%--
    Document   : About Us
    Created on : 16/08/2011, 11:47:35 ص
    Author     : Ahmed
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Settings</title>

        <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
        <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>

        <style>
            body { font-size: 62.5%; }
            label, input { display:block; }
            input.text { margin-bottom:12px; width:95%; padding: .4em; }
            fieldset { padding:0; border:0; margin-top:25px; }
            h1 { font-size: 1.2em; margin: .6em 0; }
            div#users-contain { width: auto; margin: 20px 0; }
            div#users-contain table { margin: 1em 0; border-collapse: separate; width: 100%; }
            div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
            .ui-dialog .ui-state-error { padding: .3em; }
            .validateTips { border: 1px solid transparent; padding: 0.3em; }
        </style>

        <style type="text/css">
            .js #dialog-form {display: none;}

        </style>
        <script type="text/javascript">
            document.documentElement.className = 'js';
        </script>
        <script>
            $(function() {
                $( "#datepicker" ).datepicker({
                    changeMonth: true,
                    changeYear: true
                });
            });
        </script>

        <style>
            #accordion-resizer {
                padding: 10px;
                width: auto;
                height: auto;

            }
        </style>
        <script>
            $(function() {
                $( "#accordion" ).accordion({
                    heightStyle: "content"
                });
            });
            $(function() {
                $( "#accordion-resizer" ).resizable({
                    minHeight: 140,
                    minWidth: 200,
                    resize: function() {
                        $( "#accordion" ).accordion( "refresh" );
                    }
                });
            });
        </script>


    </head>
    <body onload="resizePage()">
        <center>
            <div id="innerPageContainer" >
                <table  cellpadding="0" cellspacing="0" border="0">
                    <tr>

                        <td rowspan="3" id="innerPageCell" >


                            <div id="accordion-resizer" class="ui-widget-content">
                                <div id="accordion">
                                    <h3>Settings</h3>
                                    <div>

                                        <html:form action="/admin?actionType=updateSettings">

                                            <logic:iterate id="msg" name="AdminBean" property="settings">
                                                <font color="blue"><b>Email Id:</b></font><br/><bean:write name="msg"  property="emailId"/><br/><br/>
                                                <html:hidden property="emailId" value="${msg.emailId}"/>
                                                <font color="blue"><b>Registeration Email:</b></font><html:text name="msg" size="25" property="registerationEmails" value="${msg.registerationEmails}" /><br/>
                                                <font color="blue"><b> Supplier Email:</b></font><html:text name="msg" size="25" property="supplierEmails"  value="${msg.supplierEmails}"/><br/>
                                                <font color="blue"><b> Career Email:</b></font><html:text name="msg" size="25" property="careerEmails" value="${msg.careerEmails}"/><br/>
                                                <font color="blue"><b> Contact Email:</b></font><html:text name="msg" size="25" property="contactEmails" value="${msg.contactEmails}"/><br/>
                                                <font color="blue"><b> Upload Path:</b></font><html:text name="msg" size="40" property="uploadPath" value="${msg.uploadPath}"/><br/>
                                                <font color="blue"><b> MaxPage Records:</b></font><html:text name="msg" size="25" property="maxPageRecords" value="${msg.maxPageRecords}"/><br/>
                                                <font color="blue"><b> Email Time:</b></font><html:text name="msg" size="25" property="emailTime" styleId="datepicker"  value="${msg.emailTime}"/><br/>
                                                <font color="blue"><b> SMTP name:</b></font><html:text name="msg"  size="25" property="smtpName" value="${msg.smtpName}"/><br/>
                                                <font color="blue"><b> SMTP Username:</b></font><html:text name="msg"  size="25" property="smtpUser" value="${msg.smtpUser}"/><br/>
                                                <font color="blue"><b> SMTP Password:</b></font><html:text name="msg"  size="25" property="smtpPassword" value="${msg.smtpPassword}"/><br/>
                                                <font color="blue"><b> Project Name:</b></font><html:text name="msg"  size="25" property="projectName" value="${msg.projectName}"/><br/>
                                                <font color="blue"><b> Admin Mail:</b></font><html:text name="msg"  size="25" property="adminMail" value="${msg.adminMail}"/><br/>

                                            </logic:iterate>
                                            <html:submit value="Update" style=" padding: 10px 15px;
                                                         background: #4479BA;
                                                         color: #FFF;
                                                         -webkit-border-radius: 4px;
                                                         -moz-border-radius: 4px;
                                                         border-radius: 4px;
                                                         border: solid 1px #20538D;
                                                         width: 100px;
                                                         text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
                                                         -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
                                                         -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
                                                         box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
                                                         -webkit-transition-duration: 0.2s;
                                                         -moz-transition-duration: 0.2s;
                                                         transition-duration: 0.2s;
                                                         -webkit-user-select:none;
                                                         -moz-user-select:none;
                                                         -ms-user-select:none;
                                                         user-select:none;"/>
                                        </html:form>


                                    </div>

                                </div>
                            </div>










                        </td>
                    </tr>

                    <tr>

                    </tr>

                    <tr>

                    </tr>

                    <tr>
                        <td colspan="2" class="footer">
                            <jsp:include page="parts/Footer.jsp"/>
                        </td>
                    </tr>
                </table>

            </div>
        </center>
    </body>
</html:html>

